package com.zzxx.service;

import com.github.pagehelper.PageInfo;
import com.zzxx.entity.*;
import com.zzxx.exceptions.UpdateException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;

public interface ActivityService {

//    查所有
    List<Activity> queryAll();

//    根据ID 查询订单
    Activity queryById(String id);

	void packageUac(UserAndCoupons uac, String aid);

    void updateById(MultipartFile uploadPic, Activity gym, Manager loginManager) throws IOException, UpdateException;

    PageInfo<Activity> findPage(Integer pageNum, Integer pageSize);

    void addActivity(MultipartFile uploadPic, Activity activity, Manager manager) throws IOException, UpdateException;

    void delete(String aid, String mid) throws UpdateException;

    ActivityAndRule findAar(String id, String aid);

    void updateAar(ActivityAndRule aar);

    boolean checkPower(String aid, String id);

    List<ManagerPower> findPower(String aid, String id);

    List<ManagerAndPower> packageMap(List<ManagerPower> list);

    void deleteNum(String id, String num);

    List<ActivitySchedule> queryByASid(String id);

    Boolean tui(String id, String time) throws ParseException;
}
